package com.xwdeshj.entity;

import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.*;
import java.util.Date;

/**
 * 11、农家乐——农家图集信息
 */
@Entity(name = "xw_farm_atlasinfo")
public class XwFarmAtlasinfo {

    /**
     * 农家图集id
     */
    @Column(name = "farm_atlas_id")
    private Integer farmAtlasId;

    /**
     * 商家加密id
     */
    @Column(name = "business_encryptId")
    private String businessEncryptid;

    /**
     * 农家乐加密id（店铺id）
     */
    @Column(name = "farm_encryptId")
    private String farmEncryptid;

    /**
     * 农家乐图集（最多上传10张图片）
     */
    @Column(name = "farm_atlas_img")
    private String farmAtlasImg;

    /**
     * 更新时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Column(name = "farm_atlas_updatetime")
    private Date farmAtlasUpdatetime;

    /**
     * 添加时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Column(name = "farm_atlas_createtime")
    private Date farmAtlasCreatetime;

    public XwFarmAtlasinfo(){

    }

    public XwFarmAtlasinfo(String businessEncryptid, String farmEncryptid, String farmAtlasImg, Date farmAtlasUpdatetime, Date farmAtlasCreatetime) {
        this.businessEncryptid = businessEncryptid;
        this.farmEncryptid = farmEncryptid;
        this.farmAtlasImg = farmAtlasImg;
        this.farmAtlasUpdatetime = farmAtlasUpdatetime;
        this.farmAtlasCreatetime = farmAtlasCreatetime;
    }


    /**
     * 获取农家图集id
     *
     * @return farm_atlas_id - 农家图集id
     */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    public Integer getFarmAtlasId() {
        return farmAtlasId;
    }

    /**
     * 设置农家图集id
     *
     * @param farmAtlasId 农家图集id
     */
    public void setFarmAtlasId(Integer farmAtlasId) {
        this.farmAtlasId = farmAtlasId;
    }

    /**
     * 获取商家加密id
     *
     * @return business_encryptId - 商家加密id
     */
    public String getBusinessEncryptid() {
        return businessEncryptid;
    }

    /**
     * 设置商家加密id
     *
     * @param businessEncryptid 商家加密id
     */
    public void setBusinessEncryptid(String businessEncryptid) {
        this.businessEncryptid = businessEncryptid;
    }

    /**
     * 获取农家乐加密id（店铺id）
     *
     * @return farm_encryptId - 农家乐加密id（店铺id）
     */
    public String getFarmEncryptid() {
        return farmEncryptid;
    }

    /**
     * 设置农家乐加密id（店铺id）
     *
     * @param farmEncryptid 农家乐加密id（店铺id）
     */
    public void setFarmEncryptid(String farmEncryptid) {
        this.farmEncryptid = farmEncryptid;
    }

    /**
     * 获取农家乐图集（最多上传10张图片）
     *
     * @return farm_atlas_img - 农家乐图集（最多上传10张图片）
     */
    public String getFarmAtlasImg() {
        return farmAtlasImg;
    }

    /**
     * 设置农家乐图集（最多上传10张图片）
     *
     * @param farmAtlasImg 农家乐图集（最多上传10张图片）
     */
    public void setFarmAtlasImg(String farmAtlasImg) {
        this.farmAtlasImg = farmAtlasImg;
    }

    /**
     * 获取更新时间
     *
     * @return farm_atlas_updatetime - 更新时间
     */
    public Date getFarmAtlasUpdatetime() {
        return farmAtlasUpdatetime;
    }

    /**
     * 设置更新时间
     *
     * @param farmAtlasUpdatetime 更新时间
     */
    public void setFarmAtlasUpdatetime(Date farmAtlasUpdatetime) {
        this.farmAtlasUpdatetime = farmAtlasUpdatetime;
    }

    /**
     * 获取添加时间
     *
     * @return farm_atlas_createtime - 添加时间
     */
    public Date getFarmAtlasCreatetime() {
        return farmAtlasCreatetime;
    }

    /**
     * 设置添加时间
     *
     * @param farmAtlasCreatetime 添加时间
     */
    public void setFarmAtlasCreatetime(Date farmAtlasCreatetime) {
        this.farmAtlasCreatetime = farmAtlasCreatetime;
    }

    @Override
    public String toString() {
        return "XwFarmAtlasinfo{" +
                "farmAtlasId=" + farmAtlasId +
                ", businessEncryptid='" + businessEncryptid + '\'' +
                ", farmEncryptid=" + farmEncryptid +
                ", farmAtlasImg='" + farmAtlasImg + '\'' +
                ", farmAtlasUpdatetime=" + farmAtlasUpdatetime +
                ", farmAtlasCreatetime=" + farmAtlasCreatetime +
                '}';
    }
}